﻿using System.Collections;
using ParaEditor.Domain.Entities;

namespace ParaEditor.DAO
{
    public class GlobelValue
    {
        public Hashtable TablePrimary;
        public Hashtable TableParamID;
        public Hashtable TableIssueTrade;
        public GlobelValue()
        {
            Para3006 p3006 = new Para3006();
            Para3007 p3007 = new Para3007();
            Para3011 p3011 = new Para3011();
            Para3082 p3082 = new Para3082();
            Para3083 p3083 = new Para3083();
            Para3084 p3084 = new Para3084();
            Para3085 p3085 = new Para3085();
            Para4001 p4001 = new Para4001();
            Para4002 p4002 = new Para4002();
            Para4003 p4003 = new Para4003();
            Para4004 p4004 = new Para4004();
            Para4006 p4006 = new Para4006();
            Para4009 p4009 = new Para4009();
            QfPercent p4010 = new QfPercent();
            BenfInfo p4011 = new BenfInfo();
            Para4015 p4015 = new Para4015();
            Para4030 p4030 = new Para4030();
            InnerVerCtrl innerVerCtrl = new InnerVerCtrl();
            VersionContrast versionContrast = new VersionContrast(); 

            TablePrimary = new Hashtable();
            TablePrimary.Add(p3006.GetType(), "TBL_METRO_STATION_INFO:STATION_VER");
            TablePrimary.Add(p3007.GetType(), "TBL_METRO_LINE_INFO:INFO_VER");
            TablePrimary.Add(p3011.GetType(), "TBL_METRO_LOCAL_RES:INFO_VER");
            TablePrimary.Add(p3082.GetType(), "TBL_METRO_STATION_SHADOW:INFO_VER");
            TablePrimary.Add(p3083.GetType(), "TBL_TVM_FORM_PARAM:INFO_VER");
            TablePrimary.Add(p3084.GetType(), "TBL_TVM_STA_FORM_PARAM:INFO_VER");
            TablePrimary.Add(p3085.GetType(), "TBL_METRO_STAION_EXIT_SHADOW:INFO_VER");
            TablePrimary.Add(p4001.GetType(), "TBL_METRO_HOLIDAY:INFO_VER");
            TablePrimary.Add(p4002.GetType(), "TBL_METRO_TICKET_TYPE:INFO_VER");
            TablePrimary.Add(p4003.GetType(), "TBL_METRO_PRICE_RATE:INFO_VER");
            TablePrimary.Add(p4004.GetType(), "TBL_METRO_STATION_AREA:INFO_VER");
            TablePrimary.Add(p4006.GetType(), "TBL_METRO_TIME_NON_BUSY:INFO_VER");
            TablePrimary.Add(p4009.GetType(), "TBL_METRO_TICKET_CORRESPOND:INFO_VER");
            TablePrimary.Add(p4010.GetType(), "TBL_METRO_QF_PERCENT:INFO_VER");
            TablePrimary.Add(p4011.GetType(), "TBL_METRO_BENF_INFO:BENF_ID");
            TablePrimary.Add(p4015.GetType(), "TBL_METRO_CMCCTICK_INFO:INFO_VER");
            TablePrimary.Add(p4030.GetType(), "TBL_METRO_SUB_ROAD:INFO_VER");
            TablePrimary.Add(innerVerCtrl.GetType(), "TBL_METRO_INNER_VER_CTRL:VERSION_NUM");
            TablePrimary.Add(versionContrast.GetType(), "TBL_METRO_VERSION_CONTRAST:VERSION_NUM");



            TableIssueTrade = new Hashtable();
            TableIssueTrade.Add(p3006.GetType(), "3006");
            TableIssueTrade.Add(p3007.GetType(), "3007");
            TableIssueTrade.Add(p3011.GetType(), "3011");
            TableIssueTrade.Add(p3082.GetType(), "3082");
            TableIssueTrade.Add(p3083.GetType(), "3083");
            TableIssueTrade.Add(p3084.GetType(), "3084");
            TableIssueTrade.Add(p3085.GetType(), "3085");
            TableIssueTrade.Add(p4001.GetType(), "4001");
            TableIssueTrade.Add(p4002.GetType(), "4002");
            TableIssueTrade.Add(p4003.GetType(), "4003");
            TableIssueTrade.Add(p4004.GetType(), "4004");
            TableIssueTrade.Add(p4006.GetType(), "4006");
            TableIssueTrade.Add(p4009.GetType(), "4009");
            TableIssueTrade.Add(p4010.GetType(), "4010");
            TableIssueTrade.Add(p4011.GetType(), "4011");
            TableIssueTrade.Add(p4015.GetType(), "4015");
            TableIssueTrade.Add(p4030.GetType(), "4030");


            TableParamID = new Hashtable();
            TableParamID.Add("3006", "TBL_METRO_STATION_INFO:STATION_VER");
            TableParamID.Add("3007", "TBL_METRO_LINE_INFO:INFO_VER");
            TableParamID.Add("3011", "TBL_METRO_LOCAL_RES:INFO_VER");
            TableParamID.Add("3082", "TBL_METRO_STATION_SHADOW:INFO_VER");
            TableParamID.Add("3083", "TBL_TVM_FORM_PARAM:INFO_VER");
            TableParamID.Add("3084", "TBL_TVM_STA_FORM_PARAM:INFO_VER");
            TableParamID.Add("3085", "TBL_METRO_STAION_EXIT_SHADOW:INFO_VER");
            TableParamID.Add("4001", "TBL_METRO_HOLIDAY:INFO_VER");
            TableParamID.Add("4002", "TBL_METRO_TICKET_TYPE:INFO_VER");
            TableParamID.Add("4003", "TBL_METRO_PRICE_RATE:INFO_VER");
            TableParamID.Add("4004", "TBL_METRO_STATION_AREA:INFO_VER");
            TableParamID.Add("4005", "TBL_METRO_STATION_AREA:INFO_VER");
            TableParamID.Add("4006", "TBL_METRO_TIME_NON_BUSY:INFO_VER");
            TableParamID.Add("4009", "TBL_METRO_TICKET_CORRESPOND:INFO_VER");
            TableParamID.Add("4010", "TBL_METRO_QF_PERCENT:INFO_VER");
            TableParamID.Add("4011", "TBL_METRO_BENF_INFO:BENF_ID");
            TableParamID.Add("4015", "TBL_METRO_CMCCTICK_INFO:INFO_VER");
            TableParamID.Add("4030", "TBL_METRO_SUB_ROAD:INFO_VER");
        }

    }
}
